GH-75586: Fix case where PATHEXT isn't applied to items in PATH (Windows)#103179
Merged
zooba merged 31 commits intopython:mainfrom Apr 4, 2023
Merged
GH-75586: Fix case where PATHEXT isn't applied to items in PATH (Windows)#103179zooba merged 31 commits intopython:mainfrom
zooba merged 31 commits intopython:mainfrom
Conversation
eryksun
reviewed
Apr 2, 2023
eryksun
reviewed
Apr 2, 2023
eryksun
reviewed
Apr 2, 2023
eryksun
reviewed
Apr 2, 2023
eryksun
reviewed
Apr 2, 2023
Contributor
Author
|
@eryksun I think i fixed everything. Check again. Thanks! |
eryksun
reviewed
Apr 2, 2023
Co-authored-by: Eryk Sun <[email protected]>
eryksun
reviewed
Apr 2, 2023
eryksun
reviewed
Apr 2, 2023
eryksun
reviewed
Apr 2, 2023
Co-authored-by: Eryk Sun <[email protected]>
Co-authored-by: Eryk Sun <[email protected]>
eryksun
reviewed
Apr 4, 2023
zooba
reviewed
Apr 4, 2023
Co-authored-by: Steve Dower <[email protected]>
Contributor
Author
|
@zooba updated and added a corresponding test. |
Member
|
Looks good, and the tests all patch the call to that API so we shouldn't be impacted if the test machine has it configured differently. Once CI passes, and unless someone else speaks up, I'll merge. Thanks for all your work on this! |
Contributor
Author
|
Got a doctest failure... The error is odd.. maybe its transient? I'll push an empty commit to see if it helps. |
eryksun
reviewed
Apr 4, 2023
Contributor
Author
|
@eryksun added. Thanks. |
eryksun
approved these changes
Apr 4, 2023
Contributor
eryksun
left a comment
There was a problem hiding this comment.
LGTM. Thank you, Charles.
gaogaotiantian
pushed a commit
to gaogaotiantian/cpython
that referenced
this pull request
Apr 8, 2023
warsaw
pushed a commit
to warsaw/cpython
that referenced
this pull request
Apr 11, 2023
7 tasks
This was referenced Nov 19, 2024
Member
|
This change introduced a regression: #127001. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GH-75586 - Fix case where PATHEXT isn't applied to items in PATH.
The logic change here makes it so that if the command passed into
shutil.whichon windows, it will be verified against how it is passed in and against the various items in PATHEXT.For example:
will now return
Instead of
None.If this looks good, I'd be happy to create a changelog entry, etc. Just feeling the water with this first commit.